package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Prediction2;
import com.example.demo.common.entity.Sample;
import com.example.demo.common.mapper.Prediction2Mapper;
import com.example.demo.common.mapper.SampleMapper;
import com.example.demo.common.service.Prediction2Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class Prediction2ServiceImpl implements Prediction2Service {
    @Resource
    Prediction2Mapper prediction2Mapper;
    @Override
    public void savePrediction2(Prediction2 prediction2){
        prediction2Mapper.insert(prediction2);
    }
    @Override
    public void updatePrediction2(Prediction2 prediction2){
        prediction2Mapper.updateById(prediction2);
    }
    @Override
    public void deleteById(Long id){
        prediction2Mapper.deleteById(id);
    }
    @Override
    public Prediction2 findAll(){ return prediction2Mapper.findAll(); }
}
